import Service from '../core/baseService';

export default class OrderService extends Service {
  constructor(ctx) {
    super(ctx);
    this.model = ctx.model.Shipper;
  }



  

  async list() {
    let total = 0;

    const result = await this.model
      .findAndCountAll({
        order: [['id', 'DESC']],
      });

    return {
      list: result.rows,
      total,
    };
  }

}
